<%@ page language="java" pageEncoding="UTF-8" contentType="text/html;charset=UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
	request.setAttribute("basePath",basePath);
%>
<%@ include file="/resources/js/easyui/taglibs.jsp"%>
<%@ include file="/resources/js/wechat/_wechatui.jsp"%>
<%@ include file="/resources/js/easyui/_viewJS.jsp"%>
<!DOCTYPE>
<html>
<head>
	<title>账目详情</title>
</head>
<body>
<div class="loading"></div>
<!-- header -->
<header>
	<a href="javascript:history.go(-1);" class="top_fh">第${frequencyStatistic.index}次收账</a>
</header>
<!-- header end -->

<div class="page zmxq_page">
	<div class="zmxq_lengthszinner">

		<c:forEach items="${frequencyStatistic.statisticDetails}" var="statistic" varStatus="status">
			<div>
				<em class='lengthsz_title'><c:if test="${status.index == 0}">本轮总账：</c:if><c:if test="${status.index != 0}">上一轮总账：</c:if></em>
				<div class="zmxq_xjzj">
					<ul>
						<li>
							<span>1</span>元<i>${statistic.oneBalance}</i>张<em>￥ <fmt:formatNumber value="${statistic.oneBalance * 1}" pattern="#,###0.00"/></em>
						</li>
						<li>
							<span>5</span>元<i>${statistic.fiveBalance}</i>张<em>￥ <fmt:formatNumber value="${statistic.fiveBalance * 5}" pattern="#,###0.00"/></em>
						</li>
						<li>
							<span>10</span>元<i>${statistic.tenBalance}</i>张<em>￥ <fmt:formatNumber value="${statistic.tenBalance * 10}" pattern="#,###0.00"/></em>
						</li>
						<li>
							<span>20</span>元<i>${statistic.twentyBalance}</i>张<em>￥ <fmt:formatNumber value="${statistic.twentyBalance * 20}" pattern="#,###0.00"/></em>
						</li>
						<li>
							<span>50</span>元<i>${statistic.fiftyBalance}</i>张<em>￥ <fmt:formatNumber value="${statistic.fiftyBalance * 50}" pattern="#,###0.00"/></em>
						</li>
						<li>
							<span>100</span>元<i>${statistic.hundredBalance}</i>张<em>￥ <fmt:formatNumber value="${statistic.hundredBalance * 100}" pattern="#,###0.00"/></em>
						</li>
					</ul>
				</div>
				<p>共计${statistic.billCount}张  小计：${statistic.subtotal}</p>
				<div class="zmxq_qttj">
					<ul>
						<li>微信：${statistic.wechatPayTotal}</li>
						<li>支付宝：${statistic.alipayPayTotal}</li>
						<li>一元硬币：${statistic.coinTotal}个</li>
						<li>游戏币：${statistic.gameCoinQuantity}个</li>
						<li>出币：${statistic.outGameCoinAccount}个</li>
						<li>出礼品：${statistic.outGiftAccount}个</li>
						<li>远程补币：${statistic.remotelyOutGameCoinAccount}个</li>
					</ul>
				</div>
			</div>
		</c:forEach>
	</div>
</div>

<!-- footer -->
<div class="zmxq_footer">
	<a id="CG_device_account" href="javascript:void(0);">按日期</a>
	<a id="GC_device_frequency_account" href="javascript:void(0);" class='cur'>按次数</a>
</div>
<!-- footer end -->
</body>
</html>
<script>

	var url_prefix = '${basePath}wechat/income/accounts/${placeid}/';
	var url_param = "?placeName=" + encodeURI(encodeURI('${frequencyStatistic.placeName}')) + "&deviceSerial=" + ${frequencyStatistic.deviceid} +"&deviceName=" + encodeURI(encodeURI('${frequencyStatistic.deviceName}'));

	/*按日期查询账目*/
	$("#CG_device_account").click(function () {
		window.location.href = url_prefix+'thatdayaccount' + url_param +"&statisticDate=";
	});

	/*按次数查询账目*/
	$("#GC_device_frequency_account").click(function () {
		window.location.href = url_prefix + 'frequencyaccount' + url_param;
	});

</script>